#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
protected Q_SLOTS:
    void onOpen();
    void onDoubleClicked(const QModelIndex& index);
	void onTabChanged(int index);

private:
    void setView(QTableView* view);
	bool searchVideo(const QString &rootPath, QFileInfoList& paths);
    bool addVideo(const QFileInfo& file);
    bool playVideo(const QString& videoPath);

private:
	QTabWidget *tabWidget;
};

#endif // MAINWINDOW_H
